home *** CD-ROM | disk | FTP | other *** search
/ MaxiMac 1999 September / MaxiMac 94.iso / Macworld N°94 / Macworld Pratique / Programmation / HyperCard JP Chicheret / Goodies de JPC / statistfunctions-22-hc / AboutStatistFunctions22.txt next >
Encoding:
Text File  |  1999-06-03  |  7.5 KB  |  126 lines  |  [TEXT/MSWD]

  1. INFO about the stack StatistFunctions
  2. ==========================
  3. 03-jun-1999
  4. Version 2.2E
  5.  
  6. Very short:
  7. ---------
  8. This HyperCard stack by Oscar van Vlijmen computes many statistical functions with high accuracy and usable for large numbers. Included are many combinatorial functions, many PDFs (probability density) and CDFs (cumulative distribution), plus several special functions such as Erlang B+C network traffic, factorial, modified Bessel, (in)complete gamma & beta.
  9.  
  10.  
  11. Much more info in the stack. Here an abstract.
  12.  
  13. What is a stack?
  14. ------------
  15. A stack is a HyperCard document. HyperCard is a Macintosh application program from Apple Computer. A free player for stacks is provided with every Mac. If you want to change scripts in a stack, you need the development kit, which can be bought from an Apple reseller.
  16. The latest version 2.4.1 of the HyperCard player can be downloaded from:
  17. ftp://ftp.info.apple.com/Apple_Support_Area/Apple_Software_Updates/US/Macintosh/Utilities/HyperCard/
  18.  
  19. What can you do with this stack?
  20. -----------------------
  21. On each card you will find a button that can give an answer to a combinatorial problem or that can compute a chance, that’s to say a probability density function (PDF) or a cumulative distribution function (CDF).
  22. Several special functions, used in this stack, can be calculated separately.
  23. You can use this stack as a replacement for statistical tables. Calculations are very precise and you can enter relatively large numbers.
  24.  
  25. What you can compute
  26. ----------------
  27. The following combinatorial computations are possible:
  28. • Combinations
  29. • Drawing with or without putting back (replacement)
  30. • Multiple permutations
  31. • Permutations (and weirdly big factorials!)
  32. • Variations
  33.  
  34. The following probabilities (PDFs) can be computed:
  35. • Alternative distribution
  36. • Binomial distribution (e.g. football toto)
  37. • Discrete uniform distribution
  38. • Drawing probability in general, i.e. hypergeometric distribution (application: Lucky 10)
  39. • Geometric distribution
  40. • Lotto (special case of hypergeometric)
  41. • Multinomial distribution
  42. • Negative binomial distribution
  43. • Normal distribution
  44. • Poisson distribution
  45.  
  46. Furthermore the following cumulative distribution functions (CDFs) can be computed:
  47. • Beta
  48. • Binomial
  49. • Cauchy
  50. • Chi square
  51. • Erlang
  52. • Gamma
  53. • Hypergeometric
  54. • Inverse of standard normal
  55. • Inverse-normal CDF
  56. • Logistic
  57. • Negative binomial
  58. • Negative exponential
  59. • Rayleigh
  60. • Snedecor-F
  61. • Standard normal
  62. • Student-T
  63. • Tukey-lambda
  64. • Von Mises
  65.  
  66. Plus the following special functions, used in this stack, can be computed:
  67. • Beta function
  68. • Gamma function
  69. • Erlang B and C network traffic
  70. • Error function
  71. • Factorial
  72. • Incomplete beta function
  73. • Incomplete gamma function
  74. • Modified Bessel functions of the first kind and integer order
  75.  
  76. Where appropriate and known the expected value, variance and spread (standard deviation) are given. In the case of probabilities, you also get the reciprocal of the probability.
  77.  
  78. Better than book with tables
  79. --------------------
  80. So, you don’t need any longer a book of statistical tables. No longer you have to approximate a distribution with a normal distribution. You can compute all probabilities with high accuracy.
  81. Statistical tables are pretty coarse and do not go very far. What is better than a HyperCard stack with a nice user interface?
  82.  
  83. Big numbers
  84. ----------
  85. A nice feature is that you can work with very large numbers - not in the sense of many digits but large values. Can be interesting for statistical thermodynamics or other theoretical fields.
  86. Look at the cards with ‘Drawing with putting back’ and ‘Permutations’.
  87. Here you can respectively compute large powers or large factorials (up to 10 E 305 or so, yes the factorial of this!).
  88. Factorials are computed with Stirling’s approximation. A very comprehensive description can be found in: ‘Concrete mathematics’, Graham, Knuth, Patashnik; Addison-Wesley, 4th ed. 1990, § 9.6.
  89. Since gamma(x+1) = x! you could in theory use Stirling to compute the gamma function because the ‘Permutations’ button is not restricted to integers. But the Stirling approximation is not so good for x let’s say smaller than 10. Computations using the gamma function use a more accurate function in the background script.
  90.  
  91. Accuracy
  92. --------
  93. Although one of HyperCard’s worst omissions is the inability to produce a scientific notation of numbers, the full accuracy of ‘double floats’ from the Macintosh SANE or PowerPC Numerics math library is used. With SANE (68K Mac or HyperCard 2.1) you can compute up to 10E4932 with a precision of 18-19 digits, and with PowerPC Numerics (MathLib, Power Macintosh and HyperCard ≥2.3) you can compute up to 10E308 with a precision of 15-16 digits. But unfortunately we have to make ourselves a scientific notation with the ln-function, a process which loses 1-3 digits accuracy. Still enough for statistics though.
  94.  
  95. Not fool proof
  96. ----------
  97. This stack is kept pretty simple with no frills and with very little input checking. It’s easy to enter garbage and to produce meaningless results or HyperCard error messages (e.g. can’t take the value of that expression, NAN(000), etc.).
  98. Another point: this stack is NOT a course in statistics, only a calculator with short explanations. Buy one of the many good text books on statistics.
  99.  
  100. Localization remark
  101. ---------------
  102. HyperCard works with its own number representation, even if you have configured your system with Control Panel ‘Numbers’ or similar with another decimal sign. So, use for this stack a point for decimal separator and nothing for thousands separator.
  103.  
  104. Version history
  105. ------------
  106. * 1.1.0. First public release in Dutch language.
  107. (I mean, you know, I’m like Dutch!)
  108. * 1.2.0. Many functions added; output enhanced.
  109. * 2.0.1. Many small improvements. Expected value, variance, spread added. Checked with HyperCard 2.4.1 and Mac OS 8.1. The stack should still work with HyperCard 2.1.
  110. * 2.1.0E. First English translation. Some improvements.
  111. * 2.2. Erlang B&C text augmented with Poisson and binomial traffic models.
  112. Distributions added (Tukey-lambda, logistic, cumulative hypergeometric, Von Mises).
  113. Separate cards for some of the used special functions (gamma, beta, incomplete gamma & beta, modified Bessel functions). 
  114. Navigational index card added.
  115.  
  116. Small print
  117. ---------
  118. Copyright © Oscar van Vlijmen 20-nov-1998.
  119. You know the drill: this stack is for free, but I own the intellectual rights and all commercial rights, and legally you can’t do anything serious with it.
  120. Formulas and algorithms are of course not copyrightable, complete applications of these however, are.
  121. The author of this stack cannot be held responsible for the consequences of using or not being able to use this stack or parts of it. Despite the care with which this stack has been put together, there is no guarantee that any comments are correct, any calculations are correct, the algorithms that lie behind the calculations are correct nor any functionality is correct. You receive this software ‘as is’.
  122. This stack may be used and distributed for free if in non-commercial applications, but may not be used in or distributed for commercial applications of any kind, including the selling of CD-ROMs or charged Internet/intranet or BBS site services. This stack or parts of it may not be sold or traded by others than Oscar van Vlijmen, i.e. the author, or his representatives. Parts of this stack - e.g. scripts - may be in complete or partially used in other non-commercial applications, but only if in the used parts expressed copyright statements regarding the author are not deleted. If the original parts are changed significantly, then of course author is no longer able to claim copyright.
  123.  
  124. ENDS
  125.  
  126.